package org.linlinjava.litemall.db.dao;


import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.LumierePayMemberUserLogVo;
import org.linlinjava.litemall.db.domain.LumierePayMemberUserVo;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import static org.linlinjava.litemall.db.domain.LumiereSubscribeUserLog.Column.buyType;

public interface PayMemberMapper {
    List<LumierePayMemberUserVo> queryPayMemberUsers(@Param("userName") String userName,
                                                    @Param("memberName") String memberName,
                                                     @Param("page") Integer page,
                                                     @Param("limit") Integer limit,
                                                     @Param("sort") String sort,
                                                     @Param("order") String order );

    List<LumierePayMemberUserLogVo> queryPayMemberUserLogs(@Param("userName") String userName, @Param("memberName") String memberName,
                                                           @Param("purchaseType")  Byte purchaseType,
                                                           @Param("buyTime") LocalDate buyTime,
                                                           @Param("payType")  Byte payType,@Param("sort") String sort, @Param("order") String order);


    List<LumierePayMemberUserLogVo> queryPayMemberUserLogsByUid(@Param("userId") String userId,
                                                                @Param("sort") String sort,
                                                                @Param("order") String order);
}
